import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

Vue.filter("filnums", function(val) {
  return val + "$";
});

//全局过滤器

Vue.filter("filtime", function(val) {
  let year = val.getFullYear();
  let month = val.getMonth() + 1;
  let day = val.getDay();
  return `${year}-${month}-${day}`;
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
